function isset(item) {
    if (item != "" && item != null && item != undefined) {
        return true;
    }
    return false;
}
// Init
$(function (){
	 
	$("#toggle-west").click(function() {
		$("#accordion-resizer").toggle(
			"slide", 
			function(){
				if($("#accordion-resizer").css('display') == "none"){
					$('#toggle-west').addClass('toggle-west-open-new');
					$('#divCenterPanel').css('width' , '100%');
				}else{
					$('#toggle-west').removeClass('toggle-west-open-new');
					$('#divCenterPanel').css('width' , '74.56%');
				}
			}, 500 );
	});
	
	$( "#divLeftPanel" ).accordion({
		collapsible: false,
		icons: {
			header: "ui-icon-circle-arrow-e",
			activeHeader: "ui-icon-circle-arrow-s"
		},
		heightStyle: "fill",
		header: "> div > h3"
	}).sortable({
		axis: "y",
		handle: "h3",
		stop: function( event, ui ) {
			ui.item.children( "h3" ).triggerHandler( "focusout" );
			$( this ).accordion( "refresh" );
		}
	});

	$(".tab-main").tabs();

	$("#dialog-882").dialog({
		autoOpen: false,
		modal: true
	});
	
	$("#div_Map_Form_Attributes_Content").dialog({
		autoOpen: false,
		modal: true,
		width: 600,
		show: 
		{
	        effect: "blind",
	        duration: 500
        },
    	hide: 
    	{
	        effect: "explode",
	        duration: 100
	    },
	    
	    close: function() {
            $('#frmLopQT_submit')[0].reset();
            AddFeatureAttribute_Close();
            $(this).dialog( "close" );
        }
	});
	
	$("#div_Map_Form_Attributes_Result_Content").dialog({
		autoOpen: false,
		modal: true,
		width: 980,
		show: 
		{
	        effect: "blind",
	        duration: 500
        },
    	hide: 
    	{
	        effect: "explode",
	        duration: 100
	    },
	    /*buttons: {
		    "LÆ°u dá»¯ liá»‡u": function() {
               alert('#form_0000.dialog- Force click on hidden submit button.');
                $('#btnLopQT_action').click();
            }
	    },*/
	    close: function() {
            $(this).dialog( "close" );
        }
	});
	
	$("#div_Map_Form_Attributes_Result_Content_Add").dialog({
		autoOpen: false,
		modal: true,
		width: 410,
		show: 
		{
	        effect: "blind",
	        duration: 500
        },
    	hide: 
    	{
	        effect: "explode",
	        duration: 100
	    },
	    close: function() {
            $(this).dialog( "close" );
        }
	});
// ThÃªm Ä‘iá»ƒm báº±ng tá»�a Ä‘á»™
	$("#div_Map_AddPointXY").dialog({
		autoOpen: false,
		modal: true,
		width: 230,
		show: 
		{
	        effect: "blind",
	        duration: 500
        },
    	hide: 
    	{
	        effect: "explode",
	        duration: 100
	    },
	    close: function() {
            $(this).dialog( "close" );
        }
	});
	// ThÃªm thuá»™c tÃ­nh tá»�a Ä‘á»™
	$("#ThemDuLieuThuocTinh").dialog({
		autoOpen: false,
		modal: true,
		width: 363,
		show: 
		{
	        effect: "blind",
	        duration: 500
        },
    	hide: 
    	{
	        effect: "explode",
	        duration: 100
	    },
	    close: function() {
            $(this).dialog( "close" );
        }
	});

	
	$("#div_Map_Form_Attributes_Result_Content_Dodac_Add").dialog({
		autoOpen: false,
		modal: true,
		width: 450,
		show: 
		{
	        effect: "blind",
	        duration: 500
        },
    	hide: 
    	{
	        effect: "explode",
	        duration: 100
	    },
	    close: function() {
            $(this).dialog( "close" );
        }
	});
	
	//style form

	
	$('#btnAddProperties').click(function(){
		
	});
	

});

RegisterEvents = function(){
	
};